package grape.composite.rest.client.workcalendar;

import grape.composite.service.workcalendar.po.WorkCalendar;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * Created by yangwei
 * Created at 2020/5/22 19:00
 */
@Component
@FeignClient(value = "grape-composite")
public interface WorkCalendarClient {

    /**
     * 查询所有的工作日历设置
     * @return
     */
    @GetMapping(value = "/composite/workcalendar/inner/list")
    public List<WorkCalendar> list(@RequestParam Integer year,
                                   @RequestParam Integer month,
                                   @RequestParam Integer day,
                                   @RequestParam String typeDictId,
                                   @RequestParam String dateTypeDictId);

}
